home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME netc22.dei - Windows 95 -installation script for SQL*Net. DESCRIPTION This script removes the Windows 95 SQL*Net files and un-registers the product. OWNER Etna Flores MODIFIED DD-MMM-YY Reason *****************************************************************************/ { /* Check Product Dependencies */ { doit = execute("%installer_home%\win95.dei"); } [ 'UNBOUND_VARIABLE: signal('failure,instantiate(nls("instver_too_early2", "The version of the Installer currently running is %%installer_version%%. The product(s) you have chosen to deinstall were installed with a later version of the Installer. Please use a later version of the Installer to deinstall these product(s)."))); ] if (doit) { net2_deinstall_registry = nls("net2_deinstall_registry","Unregistering %%registry_label%%..."); net2_deinstall_message = nls("net2_deinstall_message","Deinstalling %%registry_label%% Message Files..."); net2_deinstall_dll = nls("net2_deinstall_dll","Deinstalling %%registry_label%% DLL's..."); net2_deinstall_script = nls("net2_deinstall_script","Deinstalling %%registry_label%% Installation Scripts..."); net2_deinstall_sample = nls("net2_deinstall_sample","Deinstalling %%registry_label%% Sample Files..."); net2_deinstall_easycfg = nls("net2_deinstall_easycfg","Deinstalling SQL*Net Easy Configuration Files..."); chkdeinst_prompt = nls("chkdeinst_prompt", "You may have Oracle Names Server and/or SQL*Net Server installed. Removing %%registry_label%% Client software will disable those products. If you continue to deinstall %%registry_label%%, you should also deinstall Oracle Names Server and SQL*Net Server."); netc22_deinst = instantiate(nls("netc22_deinst", "A %%registry_label%% DLL (NTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%registry_label%% before deinstalling %%registry_label%%. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%. Choose CANCEL to terminate the deinstallation of %%registry_label%%. ")); netc22_deinst_term = instantiate(nls("netc22_inst_term", "%%registry_label%% deinstallation terminated.")); netc22_deinst_content = instantiate(nls("netc22_deinst_content", "%%registry_label%% DLL Used")); netc22_deinst_help = instantiate(nls("netc22_deinst_help", "The Oracle Installer has detected that a %%registry_label%% DLL (NTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%registry_label%% before deinstalling %%registry_label%%. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%. Choose CANCEL to terminate the deinstallation of %%registry_label%%. ")); yes_ans = nls("yes_ans","Yes"); no_ans = nls("no_ans","No"); yes_no_list = list(yes_ans, no_ans); ezcfg = nls("ezcfg","SQL*Net configuration files"); deinstall_easycfg_prompt = nls("deinstall_easycfg_prompt","%registry_label% will now be deinstalled. Do you also wish to deinstall SQL*Net configuration files? "); deinstall_easycfg_label = nls("deinstall_easycfg_label","Deinstall SQL*Net Configuration Files?"); deinstall_easycfg_help = nls("deinstall_easycfg_help","The Oracle Installer detects SQL*Net configuration files on this machine. Do you wish to deinstall SQL*Net configuration files? YES deinstalls %registry_label% and SQL*Net configuration files. NO deinstalls %registry_label% but keeps SQL*Net configuration files. CANCEL terminates the deinstallation of %registry_label%."); done = FALSE; while(not(done)) { move_file("%ORACLE_HOME%\bin\ntnt.dll", "%ORACLE_HOME%\bin\ntnt.dll"); done = TRUE;} [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { information_dialog(instantiate(netc22_deinst), netc22_deinst_content, instantiate(netc22_deinst_help)); } 'FILE_NOT_FOUND: done = TRUE; ] ui_product(registry_label); ans = single_selection_dialog(deinstall_easycfg_prompt, yes_no_list, no_ans, deinstall_easycfg_label, deinstall_easycfg_help); if (ans == yes_ans) deinstall_easycfg = TRUE; else deinstall_easycfg = FALSE; /* deinstall "parent" product */ if (registered("w95netsrv22")) { parent_product = registration("w95netsrv22"); unreference(parent_product, parent_product); deinstall(parent_product); } /* Deinstall Dependent Products */ if (registered("w95tcp22")) { dependent = registration("w95tcp22"); unreference(dependent, dependent); deinstall(dependent); } if (registered("w95spx22")) { dependent = registration("w95spx22"); unreference(dependent, dependent); deinstall(dependent); } if (registered("w95nmp22")) { dependent = registration("w95nmp22"); unreference(dependent, dependent); deinstall(dependent); } if (deinstall_easycfg) { if (exists("%oracle_home%\network\cfg\sqlnetv2.cfg")) { remove_file("%oracle_home%\network\admin\tnsnames.ora"); remove_file("%oracle_home%\network\admin\sqlnet.ora"); } ['INVALID_FILE_NAME, 'PERMISSION_DENIED, 'WRITE_ERROR, 'OS_ERROR: continue();] { remove_file("%oracle_home%\network\admin\tnsnames.old"); } ['INVALID_FILE_NAME, 'PERMISSION_DENIED, 'WRITE_ERROR, 'OS_ERROR: continue();] { remove_file("%oracle_home%\network\cfg\sqlnetv2.cfg"); } ['INVALID_FILE_NAME, 'PERMISSION_DENIED, 'WRITE_ERROR, 'OS_ERROR: continue();] { remove_file("%oracle_home%\network\cfg\sqlnetv2.old"); } ['INVALID_FILE_NAME, 'PERMISSION_DENIED, 'WRITE_ERROR, 'OS_ERROR: continue();] { remove_file("%oracle_home%\network\admin\sqlnetv2.ora"); } ['INVALID_FILE_NAME, 'PERMISSION_DENIED, 'WRITE_ERROR, 'OS_ERROR: continue();] ui_action(instantiate(net2_deinstall_easycfg)); remove(cfg22); } else { remove(cfg22, "exe"); } ui_action(instantiate(net2_deinstall_sample)); remove(sample); ui_action(instantiate(net2_deinstall_dll)); remove(dll); remove(exec); ui_action(instantiate(net2_deinstall_message)); remove(msb); /* remove NET20 here in the registry */ modify("NET20","", ora_config, (registry_filename(current_registry))); if (registered("w95rsf72")) { dependent = registration("w95rsf72"); unreference(dependent, current_registry); deinstall(dependent); } ui_action(instantiate(net2_deinstall_script)); remove(deinstl); ui_action(instantiate(net2_deinstall_registry)); unregister(current_registry); } }